import request from "../../common/request"

export default {

	saveInfo: function (inputForm) {
		return request({
			url: "/sys/user/saveInfo",
			method: "post",
			header: { arrayFormat: "repeat" },
			data: inputForm,
		});
	},

	savePwd: function (inputForm) {
		return request({
			url: "/sys/user/savePwd",
			method: "put",
			params: inputForm,
		});
	},

	queryById: function (id) {
		return request({
			url: "/sys/user/queryById",
			method: "get",
			params: { id: id },
		});
	},

	getMenus: function () {
		return request({
			url: "/sys/user/getMenus",
			method: "get",
		});
	},

	info: function () {
		return request({
			url: "/sys/user/info",
			method: "get",
		});
	},

	list: function (params) {
		return request({
			url: "/sys/user/list",
			method: "get",
			params: params,
		});
	},

	treeData: function (params) {
		return request({
			url: "/sys/user/treeData",
			method: "get",
			params: params,
		});
	},

	// 获取微信租户配置接口
	getWX: function (openld) {
		return request({
			url: "/sys/getWX",
			method: "get",
			data: {openld},
		});
	},

	// 微信配置保存接口
	saveWX: function (data) {
		return request({
			url: "/sys/saveWX",
			method: "post",
			data: data,
		});
	}

}
